package base.design.test5Prototype.eg;

public class ClientTest {
    public static void main(String[] args) throws CloneNotSupportedException {
        //1,创建原型对象。
        FuritPrototype type=new FuritPrototype();
        //2,克隆对象
        FuritPrototype clo1 = type.clone();
        FuritPrototype clo2 = type.clone();
        clo1.setName("苹果");
        clo2.setName("橘子");
        clo1.taste();
        clo2.taste();


    }
}
